Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Innocent Heart on March 07, 2012, 02:16:31 pm
-
Hi GuyZ.. I need Some Help of YOurs. In Pawn Scripting. i want to Edit my Script into CID Cops vs CID Robbers so I Want that whenever anyone Spawn in CID Cops there is Message Show to Them ===>Your Mission is To Defeat The Robbers so That They Can't Attack On Your Base <===
and When they Choose Robbers this message come 2 Robbers
===>Your Mission is to Kill Police and Attack on Police Department <===
These Message come 2 them .
And one Thing More i want to say u that when We are Choosing Class Section evertime there Colours were white never they change so i want to change There Colours i don't know how So tell me I want that For Cops there it Come Blue colour and for RObbers it Come orange colour ! !Remember in Gups Script!
ThankS
Regards
Innocent Heart
-
hELP me Please Reply here .. I want To Do this .. Please Reply here Scripters..
-
hey wtf no One Is Replying So Noone is Helping me Why Please Help me GuyZ.
-
1. Triple post
2. Try to speak with regular letters, and don't mix capitals with normal letters..
TL;DR : Don't write this way "HeY GuYz HowArE YOu ?"
3. Learn to wait, I will probably answer whenever I come home...
-
1. Triple post
2. Try to speak with regular letters, and don't mix capitals with normal letters..
TL;DR : Don't write this way "HeY GuYz HowArE YOu ?"
3. Learn to wait, I will probably answer whenever I come home...
:-[ Sorry Now For Triple Post and ok i will wait Try To tell me Early If u can ...
-
[pawn]#define SKIN_COP 1
#define SKIN_SWAT 2
#define SKIN_FBI 3
#define SKIN_ARMY 4
#define SKIN_CRIMINAL 11
[/pawn]
^^^
On the top
[pawn]public OnPlayerSpawn(playerid,class,skinid)
{
if(( skinid == SKIN_COP ) || ( skinid == SKIN_SWAT ) || ( skinid == SKIN_FBI ) || ( skinid == SKIN_ARMY ))
{
SendClientMessage(playerid,CODE_HERE,"*** You have spawned as a law enforcement person.");
}
else if(skinid == SKIN_CRIMINAL)
{
SendClientMessage(playerid,CODE_HERE,"*** You have spawned as a criminal.");
}
[/pawn]
not sure about the callbacks tho..
-
E:\NOORAN~1\CID.pwn(139) : warning 201: redefinition of constant/macro (symbol "pInfo")
E:\NOORAN~1\CID.pwn(347) : error 017: undefined symbol "skinid"
E:\NOORAN~1\CID.pwn(351) : error 017: undefined symbol "skinid"
E:\NOORAN~1\CID.pwn(824) : warning 204: symbol is assigned a value that is never used: "szMsg"
E:\NOORAN~1\CID.pwn(837) : warning 219: local variable "str" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(862) : warning 219: local variable "str" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(1817) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(2159) : warning 204: symbol is assigned a value that is never used: "hp"
E:\NOORAN~1\CID.pwn(2461) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(2481) : warning 204: symbol is assigned a value that is never used: "hp"
E:\NOORAN~1\CID.pwn(2510) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(2767) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(2818) : warning 203: symbol is never used: "Drunk"
E:\NOORAN~1\CID.pwn(2825) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(2829) : warning 203: symbol is never used: "Drunk"
E:\NOORAN~1\CID.pwn(3069) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3078) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3087) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3096) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3200) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3246) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3254) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3544) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3544) : warning 219: local variable "x" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3544) : warning 219: local variable "y" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3544) : warning 219: local variable "z" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3563) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3974) : warning 219: local variable "tmp" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(4260) : warning 204: symbol is assigned a value that is never used: "vehicle"
E:\NOORAN~1\CID.pwn(5515) : warning 203: symbol is never used: "Wanted"
Pawn compiler 3.0.3367 Copyright (c) 1997-2005, ITB CompuPhase
2 Errors.
These Errors Comming Now Tell What i do ? :-\
-
replace skinid with skin or dunno, maybe that's how it needs to be :P
-
Nope By the Way I checked skin and Dunno but again they said Undifined Symbol so now i Type Classid then there is no error i get happy Thank You Very Much Just One thing i don't that how We Can Change the Class Selection Colours ???
-
You can change class selection colors by changing team number. e.g : 5 is Red, 15 is Blue etc..
But be sure to replace all skinid with classid..
-
ok I will try it..ThankS For your Help,
-
i set this in my script like this but i get 2 errors :'(
[pawn]//==============================================================================
public OnPlayerSpawn( playerid,classid,teamid )
{
PlayerInfo[ playerid ][ Spawned ] = 1;
GameTextForPlayerBottom( playerid, "\x10" );
format( file, sizeof( file ), USERS_FILE, gPlayers[ playerid ] );
if ( dini_Exists( file ) )
{
if ( PlayerInfo[ playerid ][ Logged ] != 1 )
{
new string[ 256 ];
format( string, 256, "Auto_Kill:[ %s ] Reason:[ Failed to login ]", gPlayers[ playerid ] );
SendClientMessageToAll(COLOR_GREEN,string );
SetPlayerPos( playerid, -556.0719, -739.7675, 4.7610,0,0 );
}
else
{ // player spawned and logged in so we need to set the money
new cash = dini_Int( file, "Cash" );
SetPlayerMoney( playerid, cash );
}
}
else SetPlayerMoney( playerid, 0 );
return 1;
}
if(( skinid == SKIN_COP ) || ( skinid == SKIN_SWAT ) || ( skinid == SKIN_FBI ) || ( skinid == SKIN_ARMY ))
{
SendClientMessage(playerid,CODE_HERE,"*** You have spawned as a law enforcement person.");
}
else if(classid == SKIN_CRIMINAL)
{
SendClientMessage(playerid,CODE_HERE,"*** You have spawned as a criminal.");
}
//==============================================================================[/pawn]
i get these two errors
[pawn]D:\MANSOOR FILES 8-)\Games\GTA Vice City\Vice City Mp\VC-MP SERVERS\Copy of VCMP SERVER\gamemodes\Pakistan.pwn(437) : error 010: invalid function or declaration
D:\MANSOOR FILES 8-)\Games\GTA Vice City\Vice City Mp\VC-MP SERVERS\Copy of VCMP SERVER\gamemodes\Pakistan.pwn(441) : error 010: invalid function or declaration
2 Errors.[/pawn]
plz help :-\
-
PLZ Scripters help me plz :-[ :'(