08.03.2011, 14:37
firs of all you need to know what sscnf do.
it reads string and replaces it in your defined params, so sscanf2:
I dont want to understand what your function will do but remember to replace playerid to gsendid in arrays/3D label creating etc...
I guess you will need
it reads string and replaces it in your defined params, so sscanf2:
pawn Код:
if(dialogid == 9991)
{
if(response)
{
new gsendid;
new string[256];
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
if (sscanf(inputtext, "u", gsendid))
if(gsendid == INVALID_PLAYER_ID) return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
else
{
format(string,sizeof(string),"Admin %s {3333FF}has make | NEW CHAINSAW ZOMBIE |!{663333} Watch color on map!",PlayerName);
SendClientMessageToAll(COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
GameTextForAll( string, 5000, 3 );
ResetPlayerWeapons(playerid);
GivePlayerWeapon(gsendid, 9, 999);
Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
SetPlayerHealth(gsendid, 999);
SetPlayerColor(gsendid, 0xFF6600AA);
SetPlayerSkin(gsendid, 137);
Delete3DTextLabel( Knife[ playerid ] );
Delete3DTextLabel( Dildo[ playerid ] );
Delete3DTextLabel( Shovel[ playerid ] );
return 1;
}
}
}
return 0;
}
I guess you will need
pawn Код:
Zombie[ gsendid] = Create...