#8

If you want it only for the playerid:

PHP код:
CMD:changemyweather(playeridparams[])
{
    new 
weatherstring[128];
    if(
sscanf(params"i"weather)) return SendClientMessage(playerid0xf8f8f8fff"Syntax: {f00f00}/changemyweather <0 - 45>");
    if(
weather || weather 45) return SendClientMessage(playerid0xf8f8f8fff"ERROR: {FFFFFF}Invalid Weather! <0 - 45>");
    
SetPlayerWeather(playeridweather);
    
format(stringsizeof(string), "{ff0ff0}Your Weather has changed to Weather %d!",weather);
    
SendClientMessage(playerid0xf8f8f8fffstring);
    return 
1;
}
CMD:changemytime(playeridparams[])
{
    new 
timeestring[128];
    if(
sscanf(params"i"timee)) return SendClientMessage(playerid0xf8f8f8fff"Syntax: {f00f00}/changemytime <0 - 23>");
    if(
timee || timee 23) return SendClientMessage(playerid0xf8f8f8fff"ERROR: {FFFFFF}Invalid Time <0 - 23>.");
    
format(stringsizeof(string), "{ff0ff0}Your time has changed to %d!",timee);
    
SendClientMessage(playerid0xf8f8f8fffstring);
    
SetPlayerTime(playeridtimee0);
    return 
1;

Reply


Messages In This Thread
hey - by Benny42O - 10.02.2018, 20:10
Re: hey - by wallen - 10.02.2018, 20:12
Re: hey - by PepsiCola23 - 10.02.2018, 20:12
Re: hey - by Benny42O - 10.02.2018, 20:13
Re: hey - by PepsiCola23 - 10.02.2018, 20:17
Re: hey - by Benny42O - 10.02.2018, 20:19
Re: hey - by Mugala - 10.02.2018, 20:28
Re: hey - by RxErT - 10.02.2018, 21:28
Re: hey - by RxErT - 11.02.2018, 12:04

Forum Jump:


Users browsing this thread: 1 Guest(s)