13.06.2012, 12:46
(
Последний раз редактировалось mickos; 13.06.2012 в 16:32.
)
done
new
RandomSpawn = random(3),
Float:x,
Float:y,
Float:z;
elste should be else
new InDM[MAX_PLAYERS]; // at the top of your script under #include......
//under your vehicle spawner command
//example
if (!strcmp("/veh", cmdtext))
{
if(InDM[playerid] == 1 ) return scm(playerid,-1,"You can't spawn vehicle.");
//other codes here
//............................
//For weapons
if (!strcmp("/mg3", cmdtext))
{
ResetPlayerWeapons(playerid); //Disarm them
GivePlayerWeapon(........);// Give them a new weapon
InDM[playerid] = 1;
//other codes here.
if (!strcmp("/kill", cmdtext))
{
//code for kill
}
if(InDM[playerid] == 1 ) return SendClientMessage(playerid,-1,"You can't spawn vehicle.");
//all other strcmp
error 035: argument type mismatch (argument 2)
if(InDM[playerid] == 1 ) return GameTextForPlayer(playerid,-1, "~y~You are in DM ~r~/kill to exit there.", 2000, 3);
SetPlayerVirtualWorld(playerid, 0);